import { UseGuards, applyDecorators } from '@nestjs/common'
import { IsAdminGuard } from 'src/guards/admin/is-admin.guard'
import { AuthJWT } from './auth.decorator'

export const IsAdmin = () => {
   return applyDecorators(AuthJWT(), UseGuards(IsAdminGuard))
}
